<?php
require_once('header.php');
?>

<form action="<?php echo base_url('firstPage/listResult')?>" method="get" name="list">
	<div style="display: table;width: 100%;">
		<div style="float: left"><a href="<?=base_url('/firstPage/add');?>">创建文章</a></div>
		<div style="float: right">
			<input type="text" name="title"  placeholder=" 搜索文章" value="<?php echo isset($title)?$title:'';?>"/>
			<input type="hidden" name="searchKey" value="1"/>
			<input type="submit" name="submit" class="btn btn-default" value="搜索"/>
		</div>
	</div>
</form>

<ul class="nav nav-tabs">
	<li role="presentation" class="active"><a href="<?php echo base_url('firstPage/listResult');?>">文章管理</a></li>
	<li role="presentation"><a href="<?php echo base_url('firstPage/userList');?>">用户管理</a></li>
</ul>

<div id="show_title"><?php echo $title;?></div>
<div id="pTime"  class="right"><b>发表时间</b> : <?php echo $pTime;?></div>
<div id="author" class="right"><b>作者</b> : <?php echo $userId;?></div>

<div id="content"><?php echo $content;?></div>